
<div>
<?if(isset($system_message))echo $system_message;
echo validation_errors() !==''?'<div class="error">'.validation_errors().'</div>' : NULL;
?>	
	<fieldset>
	<legend class="label">Subjects</legend>
		<?if(!empty($book_categories)):?>
			<table class="data-table">
				<thead class="tabular-head">
					<th>Subject Name</th>
					<th>Subject Description</th>
					<th></th>
				</thead>
				<tbody class="tabular">
				<?foreach($book_categories as $bc):?>
					<tr>
						<td><?=$bc->lbc_name;?></td>
						<td><?=$bc->lbc_desc;?></td>
						<td>
							<div class="btn-group">
							  <a href="<?=site_url('librarian/addcat/'.$bc->lbc_id)?>" class="btn btn-small confirm" title="Are you sure to edit <?=$bc->lbc_name?>?" ><i class="fa fa-edit"></i>&nbsp;</a>
							  <a href="<?=site_url('librarian/delcat/'.$bc->lbc_id.'/delete')?>" class="btn btn-small btn-danger confirm" title="Are you sure to delete <?=$bc->lbc_name?>?"><i class="fa fa-trash-o"></i>&nbsp;</a>
							</div>
						</td>
					</tr>
				<?endforeach;?>
					<tr>
						<td><a href="<?=site_url('librarian/addcat');?>" class="btn btn-mini btn-primary">Add A Subject</a></td>
					</tr>
					<tr>
						<td colspan="2"><?=$links;?></td>
					</tr>
				</tbody>
			</table>
		<?else:?>
			<div class="alert">
				There are no subjects to show, <a href="<?=site_url('librarian/addcat');?>" class="btn btn-mini">Add A Subject</a>
			</div>
		<?endif;?>
	</fieldset>
</div>